import request from '@/utils/request'

// 获取当前用户站点的所有车辆信息
export function getBusByCurr() {
  return request({
    url: 'gps/bus/getBusByCurr',
    method: 'post',
  })
}

//获取当前车辆的经过的站点信息
export function getBusStationByCurr(id, lineCode) {
  return request({
    url: `gps/bus/getBusStationByCurr?shiftId=${id}&lineCode=${lineCode}`,
    method: 'post',
  })
}

//获取当前车辆距离距离关注站点的状态信息
export function getBusPositionByCurr(shiftId,stationId) {
  return request({
    url: `gps/bus/getBusPositionByCurr?shiftId=${shiftId}&stationId=${stationId}`,
    method: 'post',
  })
}


export function listMyPackage(id) {
  return request({
      url:`link/link/listMyPackage?shiftId=${id}`
  })
}


export function configKey() {
  return request({
      url:`/system/config/configKey/sys.warn.warningTime`
  })
}


export function khystation() {
  return request({
      url:`khystation/khystation/listALL`
  })
}




